DNBOOL = {
    FALSE = 0,
    TRUE = 1,
}


---斗牛操作类型
DNActionType = {
    ACTION_UNKNOWN = 0,
    ACTION_QIANGZHUANG = 1,   ----抢庄
    ACTION_BUQIANG = 2,       ----不抢庄
    ACTION_XIAZHU = 3,        ----下注
    ACTION_KAIPAI = 4,        ----开牌
    ACTION_SET_BANKER = 5,    ----设置庄家
    ACTION_FAPAI    = 6,      ----发牌
    ACTION_BALANCE  = 7,      ----结算
    ACTION_TYPE_CHOICE = 8,
    ACTION_TYPE_AGREE = 9,      ----同意
    ACTION_TYPE_DISAGREE = 10,  ----不同意 
}


DNWinType = {
    DN_WIN_TYPE_UNKNOWN = 0,
    DN_WIN_TYPE_WIN = 1,
    DN_WIN_TYPE_LOSE = 2,
}
DNCardType = {
    CARD_TYPE_UNKNOWN = 0,
    CARD_TYPE_MEINIU = 1,           ---没牛
    CARD_TYPE_NIU_ONE = 2,          ---牛一
    CARD_TYPE_NIU_TWO = 3,          ---牛二
    CARD_TYPE_NIU_THREE = 4,        ---牛三
    CARD_TYPE_NIU_FOUR = 5,         ---牛四
    CARD_TYPE_NIU_FIVE = 6,         ---牛五
    CARD_TYPE_NIU_SIX  = 7,         ---牛六
    CARD_TYPE_NIU_SEVEN = 8,        ---牛七
    CARD_TYPE_NIU_EIGHT = 9,        ---牛八
    CARD_TYPE_NIU_NINE = 10,        ---牛九
    CARD_TYPE_NIU_TEN  = 11,        ---牛牛
    CARD_TYPE_NIU_SHUN_ZI = 12,     ---顺子牛
    CARD_TYPE_NIU_TONG_HUA = 13,    ---同花牛
    CARD_TYPE_NIU_HULU = 14,        ---葫芦牛
    CARD_TYPE_NIU_BOMB = 15,        ---炸牛
    CARD_TYPE_NIU_WUHUA = 16,       ---五花牛
    CARD_TYPE_NIU_LITTLE = 17,      ---五小牛
    CARD_TYPE_TONG_HUA_SHUN = 18,   ---同花顺牛
}

DNCardTypeName = {
    [DNCardType.CARD_TYPE_MEINIU] = "没牛",
    [DNCardType.CARD_TYPE_NIU_ONE] = "牛一",
    [DNCardType.CARD_TYPE_NIU_TWO] = "牛二",
    [DNCardType.CARD_TYPE_NIU_THREE] = "牛三",
    [DNCardType.CARD_TYPE_NIU_FOUR] = "牛四",
    [DNCardType.CARD_TYPE_NIU_FIVE] = "牛五",
    [DNCardType.CARD_TYPE_NIU_SIX] = "牛六",
    [DNCardType.CARD_TYPE_NIU_SEVEN] = "牛七",
    [DNCardType.CARD_TYPE_NIU_EIGHT] = "牛八",
    [DNCardType.CARD_TYPE_NIU_NINE] = "牛九",
    [DNCardType.CARD_TYPE_NIU_TEN] = "牛牛",
    [DNCardType.CARD_TYPE_NIU_SHUN_ZI] = "顺子牛",
    [DNCardType.CARD_TYPE_NIU_TONG_HUA] = "同花牛",
    [DNCardType.CARD_TYPE_NIU_HULU] = "葫芦牛",
    [DNCardType.CARD_TYPE_NIU_BOMB] = "炸弹牛",
    [DNCardType.CARD_TYPE_NIU_WUHUA] = "五花牛",
    [DNCardType.CARD_TYPE_NIU_LITTLE] = "五小牛",
    [DNCardType.CARD_TYPE_TONG_HUA_SHUN] = "同花顺牛",
}

DNOpenNiuType = {
    NOT_OPEN_FLUSH = 1,         ---不开启 同花顺牛,葫芦牛,同花牛,顺子牛
    OPEN_FLUSH = 2,             ---开启 同花顺牛,葫芦牛,同花牛,顺子牛
}

---普通模式倍数
DNORTimesType = {
    --散牌-牛六1倍
    [tostring(DNCardType.CARD_TYPE_MEINIU)] = 1,
    [tostring(DNCardType.CARD_TYPE_NIU_ONE)] = 1,
    [tostring(DNCardType.CARD_TYPE_NIU_TWO)] = 1,
    [tostring(DNCardType.CARD_TYPE_NIU_THREE)] = 1,
    [tostring(DNCardType.CARD_TYPE_NIU_FOUR)] = 1,
    [tostring(DNCardType.CARD_TYPE_NIU_FIVE)] = 1,
    [tostring(DNCardType.CARD_TYPE_NIU_SIX)] = 1,
    --牛七-牛八-2倍
    [tostring(DNCardType.CARD_TYPE_NIU_SEVEN)] = 2,
    [tostring(DNCardType.CARD_TYPE_NIU_EIGHT)] = 2,
    --牛九3倍
    [tostring(DNCardType.CARD_TYPE_NIU_NINE)] = 3,
    --牛牛 4倍
    [tostring(DNCardType.CARD_TYPE_NIU_TEN)] = 4,
    --顺子牛 4倍
    [tostring(DNCardType.CARD_TYPE_NIU_SHUN_ZI)] = 4,
    --同花牛 5倍
    [tostring(DNCardType.CARD_TYPE_NIU_TONG_HUA)] = 5,
    --葫芦牛 5倍
    [tostring(DNCardType.CARD_TYPE_NIU_HULU)] = 5,
    --炸弹牛 5倍
    [tostring(DNCardType.CARD_TYPE_NIU_BOMB)] = 5,
    --五花牛 5倍
    [tostring(DNCardType.CARD_TYPE_NIU_WUHUA)] = 5,
    --五小牛 6倍
    [tostring(DNCardType.CARD_TYPE_NIU_LITTLE)] = 6,
    --同花顺 8倍
    [tostring(DNCardType.CARD_TYPE_TONG_HUA_SHUN)] = 8,
}

DNSAOTimesType = {
    ---扫雷模式：牛一-牛九分别为1-9倍；牛牛10倍；炸弹牛12倍；五花牛12倍；五小牛15倍。
    [DNCardType.CARD_TYPE_MEINIU] = 1,
    [DNCardType.CARD_TYPE_NIU_ONE] = 1,
    [DNCardType.CARD_TYPE_NIU_TWO] = 2,
    [DNCardType.CARD_TYPE_NIU_THREE] = 3,
    [DNCardType.CARD_TYPE_NIU_FOUR] = 4,
    [DNCardType.CARD_TYPE_NIU_FIVE] = 5,
    [DNCardType.CARD_TYPE_NIU_SIX] = 6,
    [DNCardType.CARD_TYPE_NIU_SEVEN] = 7,
    [DNCardType.CARD_TYPE_NIU_EIGHT] = 8,
    [DNCardType.CARD_TYPE_NIU_NINE] = 9,
    [DNCardType.CARD_TYPE_NIU_TEN] = 10,
    [DNCardType.CARD_TYPE_NIU_BOMB] = 12,
    [DNCardType.CARD_TYPE_NIU_WUHUA] = 12,
    [DNCardType.CARD_TYPE_NIU_LITTLE] = 15,
}

DNTableType = {
    TABLE_TYPE_UNKNOWN = 0,
    TABLE_TYPE_ZUANSI = 1,     ---系统钻石桌
    TABLE_TYPE_FANGKA = 2,      ---自建房卡桌
    TABLE_TYPE_COIN = 3,        ---友豆场
    TABLE_TYPE_ZJZUANSI = 4,    ---自建钻石桌
    TABLE_TYPE_ZHENREN = 5,
    TABLE_TYPE_TRAIN = 6,       ---训练场
}

DNTableEnter = {
    TABLE_ENTER_PRIVATE = 1,      ----不允许不知道房号的玩家加入
    TABLE_ENTER_PUBLIC = 2,       ----允许任何人加入
}

DNCardTypeMode = {
    CARD_TYPE_MODE_UNKNOWN = 0,
    CARD_TYPE_MODE_COMMON = 1,  ----普通模式
    CARD_TYPE_MODE_SAOLEI = 2,  ----扫雷模式
}

DNQZType = {
    QZ_TYPE_UNKNOWN = 0,
    QZ_TYPE_FREE = 1,       -----自由抢庄
    QZ_TYPE_KANPAI = 2,     -----看牌抢庄
}

DNActionTime = {
    ZIYOU_QIANGZHUANG = 5,  -----抢庄时间
    KANPAI_QIANGZHUANG = 8, -----看牌抢庄
    XIAZHU_TIME      = 5,    -----下注时间
    ZIYOU_KAIPAI_TIME      = 5,   -----自由抢庄开牌时间
    KANPAI_KAIPAI_TIME     = 8,  -----看牌抢庄开牌时间
    KANPAI_JIN_CUOPAI      = 5,
    KANPAN_YOU_CUOPAI      = 8,  
}

DNXiaZhuType = {
    XZ_TYPE_UNKNOWN = 0,
    XZ_TYPE_LITTLE = 1,     -----小倍
    XZ_TYPE_MIDDLE = 2,     -----中倍
    XZ_TYPE_BIG = 3,        -----大倍
}

DNQiangzhuangTimes = {
    [DNXiaZhuType.XZ_TYPE_LITTLE] = {1,2,3,4},
    [DNXiaZhuType.XZ_TYPE_MIDDLE] = {1,2,3,4},
    [DNXiaZhuType.XZ_TYPE_BIG] = {1,2,3,4},
}
---斗牛下注倍数
DNXiaZhuTimes = {
    [DNXiaZhuType.XZ_TYPE_LITTLE] = {1,2,3,4,5},
    [DNXiaZhuType.XZ_TYPE_MIDDLE] = {2,4,6,8,10},
    [DNXiaZhuType.XZ_TYPE_BIG] = {3,6,9,12,15},
}

DNTableEnum = {
    DN_TABLE_MIN_PLAYER_NUM = 2, -----游戏开始最小人数
    DN_TABLE_MAX_PLAYER_NUM = 7,   
}

DNPlayerNum = {
    DN_TABLE_PLAYER_NUM_FIVE = 5,   ----五人桌
    DN_TABLE_PLAYER_NUM_SEVEN = 7,  ----七人桌
}

---斗牛玩家牌局身份标识
DNPlayerIDType = {
	DN_PLAYER_ID_UNKNOW = 0,	    ---不明标识
	DN_PLAYER_ID_BANKER = 1,        ---庄家
	DN_PLAYER_ID_NOT_BANKER = 2,    ---闲家
}

DNTableState = {
    DN_TABLE_STATE_UNKNOWN = 100,
    DN_TABLE_STATE_GAME_START = 101,                -----创建好牌桌可以开始游戏
    DN_TABLE_STATE_WAIT_PLAYER_SITDOWN = 102,       -----等待玩家坐下
    DN_TABLE_STATE_WAIT_ALL_READY = 103,            -----等待所有玩家准备
    DN_TABLE_STATE_START_GAME = 104,                -----房卡场桌主开始游戏
    DN_TABLE_STATE_WAIT_START_GAME = 105,           -----房卡场等待桌主开始游戏
    DN_TABLE_STATE_ONE_GAME_START = 106,            -----一局游戏开始
    DN_TABLE_STATE_ONE_WAIT_GAME_START = 107,       
    DN_TABLE_STATE_DEAL_FOUR_CARDS = 108,           -----发四张牌
    DN_TABLE_STATE_WAIT_DEAL_FOUR_CARDS_END = 109,  
    DN_TABLE_STATE_DEAL_FIVE_CARDS = 110,           -----发五张牌
    DN_TABLE_STATE_WAIT_DEAL_FIVE_CARDS_END = 111,  -----
    DN_TABLE_STATE_DEAL_LAST_CARDS = 112,
    DN_TABLE_STATE_WAIT_DEAL_LAST_CARDS_END = 113,
    DN_TABLE_STATE_QIANG_ZHUANG = 114,              -----抢庄
    DN_TABLE_STATE_WAIT_QIANG_ZHUANG = 115,         -----等待玩家抢庄完成
    DN_TABLE_STATE_XIAZHU  = 116,                   -----下注
    DN_TABLE_STATE_WAIT_XIAZHU = 117,               -----等待玩家下注完成
    DN_TABLE_STATE_KAIPAI = 118,                    -----开牌
    DN_TABLE_STATE_WAIT_KAIPAI = 119,               -----等待玩家开牌完成
    DN_TABLE_STATE_ONE_GAME_END = 120,              -----一局游戏结束，结算
    DN_TABLE_STATE_WAIT_ONE_GAME_END = 121,         -----等待一局游戏结束
    DN_TABLE_STATE_ONE_GAME_END_AFTER = 122,
}

--座位状态
DNSeatState = {
	SEAT_STATE_UNKNOW = 0,
	SEAT_STATE_NO_PLAYER = 1,           --没有玩家
	SEAT_STATE_WAIT_READY = 2,          --等待准备
	SEAT_STATE_WAIT_START = 3,          --等待开局
	SEAT_STATE_PLAYING  = 4,            --正在游戏中
    SEAT_STATE_QIANGZHUANG = 5,         --抢庄
    SEAT_STATE_QIANGZHUANG_OVER = 6,    ---抢庄完成
	SEAT_STATE_XIAZHU = 7,              --下注
	SEAT_STATE_XIAZHU_OVER = 8,         ---下注完成
    SEAT_STATE_KAIPAI = 9,              --开牌
    SEAT_STATE_KAIPAI_OVER = 10,        --开牌结束
	SEAT_STATE_TUOGUAN = 11,            ---托管状态
	SEAT_STATE_DISCONNECTED = 12,       ---断线状态
    SEAT_STATE_WAIT_NEXT_GAME = 13,     ---等待下一局游戏开始
}


--玩家站起原因
DNEStandupReason = {
	STANDUP_REASON_UNKNOW = 0,
	STANDUP_REASON_ONSTANDUP = 1,                       --玩家主动站起
	STANDUP_REASON_READYTIMEOUT_STANDUP = 2,            --准备超时站起
	STANDUP_REASON_DELETE_TABLE = 3,                    --桌子被删除,玩家站起
	STANDUP_REASON_HAVE_NOT_ENOUGH_DIAMOND = 4,         --友豆低于房间设定值
	STANDUP_REASON_HAVE_NOT_ENOUGH_DIAMOND_POCHAN = 5,  ---友豆低于'破产'设定值
	STANDUP_REASON_NITENOUGH_ROOM_COIN = 6,             ---低于房间最小值
	STANDUP_REASON_PLAYEROFFLINE = 7,                   -----玩家断线游戏结束
	STANDUP_REASON_DISCONNECTED_NO_READY = 8, 	        ----玩家准备时断线判断为离开房间
	STANDUP_REASON_GM_DELETETABLE = 9, 	                ----gm删除桌子
	STANDUP_REASON_DISCONNECTED = 10,                   ---断线重连
    STANDUP_REASON_CANCEL_TABLE = 11,                   ---解散桌子
    STANDUP_REASON_EMPTY_TABLE  = 12,
    STANDUP_REASON_TABLE_END = 13,
    STANDUP_REASON_CLEAR_PLAYER_STATE = 14,             ---清除状态
    STANDUP_REASON_TABLE_MATCH  = 15,					---匹配模式玩家离开,没准备的玩家离桌
    STANDUP_REASON_TABLE_CHUANZHUO = 16,                ---清楚串桌                      
}

DNGameName = "dn"

DNLAMPCOLOR = {
    ORANGE = "<color=#00ff00>%s</c>",
    RED = "<color=#ff0000>%s</c>",
    YELLOW = "<color=#ffff00>%s</c>",
    BLUE = "<color=#0000ff>%s</c>",
    GOLD = "<color=#ffd700>%s</c>",
    GREEN = "<color=#008b00>%s</c>",
}

DNSENDHORSEMAP = {
    GET_MONEY_MIN = 500 * 100,       ---大于等于500元发送跑马灯
}





